#include<iostream>
#include<iomanip>
#include<string>
#include<cstdio>

using namespace std;

struct Student {
	string name;
	double chinese, math, english, average;
};

int main() {
	int n;
	cout << "请输入学生人数：";
	cin >> n;
	fflush(stdin);
	Student students[100];
	cout << "请输入" << n << "名学生的信息（姓名 语文成绩 数学成绩 英语成绩）：\n";
	for (int i = 0; i < n; i++) {
		cin >> students[i].name >> students[i].chinese >> students[i].math;
		if (!(cin >> students[i].english)) {
			students[i].english = 75.50;
			cin.clear();
			cin.ignore(100, '\n');
		}
		students[i].average = (students[i].chinese + students[i].math + students[i].english) / 3.0;
	}
	cout << fixed << setprecision(2);
	for (int i = 0; i < n; i++) {
		cout << students[i].name << " " << students[i].chinese << " " << students[i].math << " " << students[i].average;
		if (students[i].average >= 90.00) {
			cout << "Excellent";
		}
		cout << endl;
	}
	return 0;
}